<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>游戏卡 分组</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="{$Think.const.RESOURCE}img/favicon.ico">
    <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <style>
        :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #b6b6b6; opacity:1;
        }

        ::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: #b6b6b6;opacity:1;
        }

        input:-ms-input-placeholder{
            color: #b6b6b6;opacity:1;
        }

        input::-webkit-input-placeholder{
            color: #b6b6b6;opacity:1;
        }
    </style>
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="row">
    <br>
    <div class="col-md-6">
        <form action="{:U('gold/record')}" METHOD="get">
            <div class="col-md-11 form-group">
                <div class="input-group m-b ">
                    <span class="input-group-addon "> 时段&nbsp; </span>
                    <div class="row form-control text-info">
                        <input type="date" value="{$condi.start_time}" name="start_time" placeholder="从[开始值]" class=" col-md-6"  style="border-style:none">
                        <input type="date" value="{$condi.end_time}" name="end_time" placeholder="到[结束值]"  class=" col-md-6"  style="border-style:none">
                    </div>
                </div>
            </div>
            <div class="col-md-8 form-group">
                <div class=" input-group ">
                    <span class="input-group-addon "> 游戏ID </span>
                    <input type="text" name="card_no" value="{$condi.card_no}" class="form-control" placeholder=" 游戏ID">
                </div>
            </div>
            <div class="col-md-6 form-group" style="margin-left: 1%">
                <div class=" input-group">
                    <button type="submit" class="J_menuItem btn btn-primary" ><i class="fa fa-search"></i> 搜索</button>
                     <a href="" type="button" class="J_menuItem btn " ><i class="fa fa-refresh"></i>  刷新</a>
                </div>
            
               
            </div>

        </form>
    </div>

    <div class="col-md-5 text-right" style="background-color: #f4dfa9;margin-right: 10px;">
        <!--<button type="button" class="btn btn-warning"  data-toggle="modal" data-target="#myModalAdd">生成金币</button>-->
        <h2 class="text-center">金币信息</h2>
        <form action="{:U('gold/create')}" method="post" class="row" name="createform">
            <div class="col-md-8">
                <div class=" form-group">
                    <div class=" input-group ">
                        <span class="input-group-addon "> 生成 &nbsp;金币数 &nbsp; *  </span>
                        <input  name="goldadd" type="number" class="form-control required" placeholder="只能是数字，必填">
                    </div>
                </div>
                <div class=" form-group ">
                    <div class=" input-group ">
                        <span class="input-group-addon ">接收人 游戏ID *</span>
                        <input name="gameid" type="number" class="form-control required" placeholder="游戏id，必填">
                    </div>
                </div>
            </div>
            <div class="col-md-2 text-center">
                <button type="reset" class="btn "><i class="fa fa-repeat"></i> 重置</button>
            </div>
            <div class="col-md-4 text-center" style="margin-top: 16px;">
                <button type="button" onclick="mycfm()"  class="btn btn-danger btn_sub"><i class="fa fa-cny"></i> 确认生成金币给玩家</button>
            </div>
        </form>
    </div>
    <script>
        function mycfm(num) {
            var msg = "确定要添加金币吗？\n\n请确认！";
            if (confirm(msg)==true){
                var goldadd = createform.goldadd.value;
                var gameid = createform.gameid.value;
                //alert( gameid=='' );
                if(gameid == '' ||  goldadd==''){
                    alert("金币数,接收人游戏id \n都不能为空！！\n\n");
                }else {
                    var url='{:U("gold/create")}?goldadd='+ goldadd +' &gameid='+gameid;         //转向网页的地址;
                    var name='detail';                            //网页名称，可为空;
                    var iWidth=1000;                          //弹出窗口的宽度;
                    var iHeight=600;                         //弹出窗口的高度;
                    //获得窗口的垂直位置
                    var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
                    //获得窗口的水平位置
                    var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
                    window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes,titlebar=no');
                }

            }
        }
    </script>
</div>
<div class="row">
    <br><br>
    <div class="col-md-12">
        <div class="tab-content">
            <div id="tab-1" class="tab-pane active">
                <div class="full-height-scroll">
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped table-hover ">
                            <thead>
                            <tr>
                                <th ><span style="display: inline-block; min-width: 60px;">接收人账号</span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">接收人昵称</span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">接收人游戏ID</span></th>
                                <th ><span style="display: inline-block; min-width: 60px;color:#c69100;">金额</span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">发送时间</span></th>
                                <th ><span style="display: inline-block; min-width: 60px;">操作员</span></th>
                            </tr>
                            </thead>

                            <tbody>
                            <volist name="lists" id="vo">
                                <tr>
                                    <!--<td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[0][0]}</td>-->
                                    <!--<td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[id]}</td>-->
                                    <td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[account]}</td>
                                    <td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[nikename]}</td>
                                    <td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[gameid]}</td>
                                    <td class="contact-type text-dark" style="border-left: 1px solid #e10000;color: #a47900;">{$vo[bankgold_add]}</td>
                                    <td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[datetime]}</td>
                                    <td class="contact-type text-dark" style="border-left: 1px solid #DDDDDD;color: #2b2b2b;">{$vo[operator]}</td>
                                </tr>
                            </volist >

                            <volist name="lists" id="vo">
                                <foreach name="vo" item="v2" key="k" >
                                    <div class="modal inmodal " id="myModal{$vo['id']['value']}" tabindex="-1" role="dialog"  aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content animated fadeIn">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal">
                                                        <span aria-hidden="true">&times;</span>
                                                        <span class="sr-only">Close</span>
                                                    </button>
                                                    <i class="fa fa-wrench modal-icon"></i>
                                                </div>
                                                <div class="modal-body">
                                                    66
                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </foreach>
                            </volist>

                            </tbody>
                        </table>

                    </div>
                    <div class=" row text-center contact-type page_show">
                        <style>
                            .page_show{
                                width: 100%;
                                margin-top:30px;
                            }
                            .page_show a{
                                padding: 16px 22px;
                            }
                            .page_show a:hover{
                                background-color: #18a689;
                                border-radius: 30px;
                                color: #ffffff;
                            }
                            .page_show .current{
                                padding: 20px;
                            }
                        </style>
                        <!--//{$page_show}-->
                        <volist name="page_show" id="vo">
                            <a href="{:U('Gold/record')}?p={$vo}" class="num">{$vo}</a>
                        </volist>
                        当前页：<span class=" text-danger">{$p}</span>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>


<!-- 全局js -->
<script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
<script src="{$Think.const.RESOURCE}js/bootstrap.min.js?v=3.3.6"></script>
<!--<script src="{$Think.const.RESOURCE}js/plugins/metisMenu/jquery.metisMenu.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/slimscroll/jquery.slimscroll.min.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/layer/layer.min.js"></script>-->

<!-- Sweet alert -->
<script src="{$Think.const.RESOURCE}js/plugins/sweetalert/sweetalert.min.js"></script>

<!--&lt;!&ndash; 自定义js &ndash;&gt;-->
<!--<script src="{$Think.const.RESOURCE}js/hplus.js?v=4.1.0"></script>-->
<!--<script type="text/javascript" src="{$Think.const.RESOURCE}js/contabs.js"></script>-->
<script type="text/javascript" src="{$Think.const.RESOURCE}js/content.js"></script>

<!--&lt;!&ndash; 第三方插件 &ndash;&gt;-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/pace/pace.min.js"></script>-->
<!--<script src="{$Think.const.RESOURCE}js/plugins/sweetalert/sweetalert.min.js"></script>-->

<script>
    $(document).keyup(function(event){
        if (event.keyCode === 27){
            //alert('event.keyCode'); //键码
            window.close();
        }
    });
</script>

</body>

</html>